package lpg;

import java.util.Arrays;

class BoundedIntArray
{
    BoundedIntArray(int lBound, int uBound)
    {
        this.lBound = lBound;
        this.uBound = uBound;
        this.info   = new int[uBound - lBound + 1];
    }

    int Lbound()
    {
        return lBound;
    }

    int Ubound()
    {
        return uBound;
    }

    int size()
    {
        return info.length;
    }

    int get(int i)
    {
        return info[i - lBound];
    }

    void set(int i, int element)
    {
        info[i - lBound] = element;
    }

    void fill(int element)
    {
        Arrays.fill(info, element);
    }

    private final int lBound;
    private final int uBound;
    private final int[] info;

}
